package com.hps.demo;

import com.hps.demo.provider.SpringConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.io.IOException;

/**
 * @Author hps
 * @Description:
 * @Date Created in 19:41 2019/7/11
 */
public class Bootstrap {

    public static void main(String[] args) throws IOException {
        ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
        ((AnnotationConfigApplicationContext) context).start();

        System.in.read();
    }
}
